//
//  NSDictionary+MYExtend.h
//  MYOnline
//
//  Created by Robin on 16/6/12.
//  Copyright © 2016年 HolyShit. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDictionary (MYExtend)

- (id)objectAtPath:(NSString *)path;
- (id)objectAtPath:(NSString *)path separator:(NSString *)separator;

- (NSNumber *)numberAtPath:(NSString *)path;
- (NSString *)stringAtPath:(NSString *)path;
- (NSArray *)arrayAtPath:(NSString *)path;
- (NSMutableArray *)mutableArrayAtPath:(NSString *)path;
- (NSDictionary *)dictAtPath:(NSString *)path;
- (NSMutableDictionary *)mutableDictAtPath:(NSString *)path;
- (NSString *)joinToPath;

@end

#pragma mark -

@interface NSMutableDictionary(BeeExtension)

- (BOOL)setObject:(NSObject *)obj atPath:(NSString *)path;
- (BOOL)setObject:(NSObject *)obj atPath:(NSString *)path separator:(NSString *)separator;

@end
